We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'd like to alias pointers
type Col = string | int struct MyType { cols []Col } pub type MyAlias = &MyType pub struct MyStruct { pub mut: array_of_mytype MyAlias = unsafe{nil} // [error](error: cannot assign `nil` to a non-pointer field) array_of_array_of_mytype &MyAlias = unsafe{nil} } fn main() { m := MyStruct{} println(m) }
Set default nil for MyAlias, which is &MyType
MyAlias
&MyType
Currently you can use a voidptr and assign nil to that instead
voidptr
No response
V 0.4.10 656afa9
Note
You can use the 👍 reaction to increase the issue's priority for developers.
Please note that only the 👍 reaction to the issue itself counts as a vote. Other reactions and those to comments will not be taken into account.
The text was updated successfully, but these errors were encountered:
Connected to Huly®: V_0.6-22982
Sorry, something went wrong.
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
I'd like to alias pointers
Reproduction Steps
Expected Behavior
Set default nil for
MyAlias
, which is&MyType
Current Behavior
Currently you can use a
voidptr
and assign nil to that insteadPossible Solution
No response
Additional Information/Context
No response
V version
V 0.4.10 656afa9
Environment details (OS name and version, etc.)
V 0.4.10 656afa9
Note
You can use the 👍 reaction to increase the issue's priority for developers.
Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.
The text was updated successfully, but these errors were encountered: